<?php
defined('SYS_RUN') or exit();

function array_decodeURI (&$a_array) {
    foreach ($a_array as $key => $value) {
        if (!is_array($value)) {
            $a_array[$key] = urldecode($value);
        } else {
            array_decodeURI($a_array[$key]);
        }
    }
}

function array_clear(&$array){
    if(is_array($array) && count($array) > 0)
        foreach($array as $key => $value){
            if(empty($value) || !$value)
                unset($array[$key]);
            elseif(is_array($array[$key]))
                array_to_lower($array[$key]);
        }
}